#include <iostream>

using namespace std;

class Persion
{
    private:
        int _age;
        const int height = 180;
       const static int weight = 160;
      ~ Persion()
       {}
    public:
    Persion(int age):_age(age)
    {

    }
    //前置++
        int operator++()
        {
            _age+= 1;
            return _age;
        }
    //后置++
    int operator++(int)
        {
            int temp = _age;
            _age+= 1;
            return temp;
        }
};

#include <queue>
//滑动窗口
void test1()
{
    std::priority_queue<pair<int,int> , 
    vector<pair<int,int>> , std::less<pair<int,int>> > queue;
    for(int i = 10 , j = 1 ; i > 0 ; --i , ++j){
        queue.push({i,j});
    }
    while(!queue.empty())
    {
        std::cout<< queue.top().first<<" "<< queue.top().second<<std::endl;
        queue.pop();
    }

}


int main()
{
    // Persion* xiaoming = new Persion(20);
    // std::cout<< xiaoming++;
    test1();

    return 0 ;
}




















